package com.cino.util;


import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class UserSession {


    //String 为token Object对象为登录用户信息
    private static Map<String,Object> concurrentHashMap = new ConcurrentHashMap<>();


    public static void setUserSession(String key,Object value){
        concurrentHashMap.put(key, value);

    };

    public static Object getUserSession(String key){
        return concurrentHashMap.get(key);

    }



}
